<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>homepage</title>
      {% load static %}

    <!-- Bootstrap core CSS -->
      <link href="{% static '/info/homepage/vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">


    <!-- Custom styles for this template -->
      <link href="{% static '/info/homepage/css/heroic-features.css' %}" rel="stylesheet">

      <script src="https://kit.fontawesome.com/198ce549fd.js" crossorigin="anonymous"></script>

  </head>

  <body>

    <!-- Navigation -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" style="background-color: black;">
      <div class="container">
        <a class="navbar-brand"  href="{% url 'index' %}" style="font-size: 30px;" ><i class="fa-sharp fa-solid fa-graduation-cap fa-2xl"></i> <span style="padding:2px 0px 2px 0px;">College ERP</span></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item">
                <button type="button" class="btn btn-outline-secondary btn-md"><a class="nav-link" href="#" data-toggle="modal" data-target="#logoutModal">Logout</a></button>
            </li>
          </ul>
        </div>
      </div>
    </nav>

    <!-- Page Content -->
    <div class="container">

      <!-- Jumbotron Header -->
      <header class="jumbotron my-4" style="background-color: rgba(0, 0, 0, 0.219);" >
        <h1 class="text-center display-3 text-capitalize" style="font-family: 'Comic Neue', cursive; color: #060606;">Welcome {{ request.user }}</h1>
      </header>

      <!-- Page Features -->
      <div class="row text-center justify-content-center display-flex">

        <div class="col-lg-3 col-md-6 mb-4">
          <div class="card"> 
                <a class="px-2 py-3" href="{% url 'add_teacher' %}">
                    <img class="card-img-top" src="{% static 'info/images/teacher.png' %}" alt="">
                </a>
                <div class="card-body">
                    <h4 class="card-title">Add Teacher</h4>
                    <p class="card-text">Enter the details of new faculty to add a new teacher to database. Make sure to correctly input values.</p>
                </div>
          </div>
        </div>

        <div class="col-lg-3 col-md-6 mb-4">
          <div class="card">
            <a class="px-2 py-3" href="{% url 'add_student' %}">
                <img class="card-img-top" src="{% static 'info/images/student.png' %}" alt="">
            </a>
            <div class="card-body">
                <h4 class="card-title">Add Student</h4>
                <p class="card-text">Enter the details of a student to enroll a new student. 
                    Fill the details carefully as they are important for academics.</p>
            </div>
          </div>
        </div>
      </div>
      <!-- /.row -->

    </div>
    <!-- /.container -->
    <!-- Logout Modal-->
    <div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
            <button class="close" type="button" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
          </div>
          <div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
          <div class="modal-footer">
            <button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
            <a class="btn btn-primary" href="/accounts/logout">Logout</a>
          </div>
        </div>
      </div>
    </div>

    <!-- Bootstrap core JavaScript -->


      <script src="{% static '/info/homepage/vendor/jquery/jquery.min.js' %}"></script>
    <script src="{% static '/info/homepage/vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script>

  </body>

</html>
